package main

import (
	"bufio"
	"fmt"
	"net"
	"os"
)

// tcp client

func main() {
	// 1、与服务器建立连接
	conn, err := net.Dial("tcp", "127.0.0.1:8080")
	if err != nil {
		fmt.Printf("dial failed err:%v\n", err)
		return
	}
	// 2、利用该连接进行数据的发送和接收
	input := bufio.NewReader(os.Stdin)
	for {
		s, _ := input.ReadString('\n')
		s = strings.
	}
}
